//
// Created by wkm on 2024-04-14.
//

#ifndef AES128CHIPSYSTEMC_X2TIME_DRIVER_H
#define AES128CHIPSYSTEMC_X2TIME_DRIVER_H

#include "../core_module/CONSTANT.h"

SC_MODULE(x2time_driver) {
    sc_in<bool> d_clk;
    sc_out<bool> d_start, d_reset;
    sc_out<sc_uint<DATA_SIZE>> d_input_data, d_compute_times;


    void prc_x2time_driver();

    SC_CTOR(x2time_driver)
            : d_clk("clk"), d_start("start"), d_input_data("input_data"),
              d_compute_times("compute_times") {
        SC_THREAD(prc_x2time_driver);
        sensitive << d_clk.pos();
    }
};


#endif //AES128CHIPSYSTEMC_X2TIME_DRIVER_H
